/****************/
/* Jiahui Shi	*/
/* 05/28/2011	*/
/* CS 244B	*/
/* Spring 2011	*/
/****************/

#ifndef SERVER_H
#define SERVER_H

#include "protocol.h"

/* ------------------------------------------------------------------ */

#ifdef ASSERT_DEBUG
#define ASSERT(ASSERTION) \
 { assert(ASSERTION); }
#else
#define ASSERT(ASSERTION) \
{ }
#endif

/* ------------------------------------------------------------------ */

	/********************/
	/* Server Functions */
	/********************/

void processPacket (MWEvent *eventPacket);
void sendShortPacket(ShortPacket pack);

/* ------------------------------------------------------------------ */
char filename[200];

Sockaddr groupAddr;
uint32_t my_socket;
Sockaddr myAddr;
in_addr_t myIP;
in_addr_t clientIP;

uint8_t server_in_use;
#endif




